import java.util.LinkedList;
import java.util.Queue;

public class Test {

    public static void main(String[] args) {
        MyQueue myQueue = new MyQueue();
        //System.out.println(myQueue.poll());
        System.out.println("当前队列是否为空: "+myQueue.isEmpty());
        System.out.println("当前队列元素个数: "+myQueue.size());
        myQueue.offer(1);
        myQueue.offer(2);
        myQueue.offer(3);
        myQueue.offer(4);
        myQueue.offer(5);
        System.out.println("当前队列是否为空: "+myQueue.isEmpty());
        System.out.println("当前队列元素个数: "+myQueue.size());
        System.out.println(myQueue.poll());
        System.out.println(myQueue.poll());
        System.out.println("当前对头元素为: "+ myQueue.peek());
        System.out.println(myQueue.poll());
        System.out.println(myQueue.poll());
        System.out.println(myQueue.poll());
        //System.out.println(myQueue.poll());
        System.out.println("当前队列是否为空: "+myQueue.isEmpty());
        System.out.println("当前队列元素个数: "+myQueue.size());

        /*MyCircularQueue myCircularQueue = new MyCircularQueue(5);
        System.out.println("是否为空: "+myCircularQueue.isEmpty());
        System.out.println("是否满了: "+myCircularQueue.isFull());
        myCircularQueue.enQueue(1);
        myCircularQueue.enQueue(2);
        myCircularQueue.enQueue(3);
        myCircularQueue.enQueue(4);
        myCircularQueue.enQueue(5);
        System.out.println("是否满了: "+myCircularQueue.isFull());
        myCircularQueue.deQueue();
        System.out.println("是否满了: "+myCircularQueue.isFull());
        System.out.println("队头元素: "+ myCircularQueue.Front());
        System.out.println("队尾元素: "+ myCircularQueue.Rear());*/
    }
}
